package com.ktwlsoft.archivemanage.domain.dao.repository;

import com.ktwlsoft.archivemanage.domain.dao.entity.ActionSource;
import com.ktwlsoft.archivemanage.domain.dao.entity.RoleActionRelation;
import com.ktwlsoft.archivemanage.payload.role.EditRoleRequest;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface IRoleActionMapper {

    int deleteByRoleId(Long roleId);

    int insertRoleAction(RoleActionRelation roleActionRelation);

    int updateRoleInfo(EditRoleRequest request);

    List<RoleActionRelation> findByRoleId(Long roleId);
}
